package sh.wnxy.wn38.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import sh.wnxy.wn38.entity.Spot;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wn38
 * @since 2021-07-14
 */
@Mapper
public interface SpotMapper extends BaseMapper<Spot> {
    @Select("select spot_id from spot where spot_name = #{spotname}")
    Integer findByName(String spotname);
}
